package com.xh.hongaicodegenerator.monitor;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import reactor.core.publisher.FluxSink;

import java.io.Serial;
import java.io.Serializable;

/**
 * 监控上下文（需要传递的数据）
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FluxContext implements Serializable {

    private Long appId;

    private StringBuilder aiMessage;

    private FluxSink<String> sink;

    private String generatedCode;

    @Serial
    private static final long serialVersionUID = 1L;
}